import json

from parameterized import parameterized


def add(a,b):
    return a+b

def test01_add(self):
        res=add(3,6)
        self.assertEqual(9,res)

def test02_add(self):
        res=add(5,10)
        self.assertEqual(15,res)

def test03_add(self):
        res=add(2,4)
        self.assertEqual(6,res)
def get_list():
    with open('./2.json',mode = 'r',encoding='utf-8')as f:
        data = json.loads(f.read())
        real_data = []
        for i in data:
            real_data.append(tuple(i.values()))
        return real_data





class Testadd():
    @parameterized.expand(get_list())
    def test01_add(self,a,b,expect):
        set = add(a,b)


